package com.woniuxy.lrz.carlproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户订单表
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
@TableName("user_order")
@ApiModel(value = "UserOrder对象", description = "用户订单表")
public class UserOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_order_id", type = IdType.AUTO)
    private Integer userOrderId;

    @ApiModelProperty("订单编号")
    private String userOrderNo;

    @ApiModelProperty("关联用户id")
    private Integer userId;

    @ApiModelProperty("关联门店id")
    private Integer shopId;

    @ApiModelProperty("订单生成时间")
    private Date userOrderCreateTime;

    @ApiModelProperty("订单完成时间")
    private Date userOrderFinishTime;

    @ApiModelProperty("预约服务时间")
    private Date appointTime;

    @ApiModelProperty("订单状态 TRANSPORT-配送 WAITING-等待服务 SERVING-服务中 WORKED-服务完成 DEAL-订单完成 COMPLAIN-投诉  已退款-REFUND")
    private String status;

    private String userOrderLocation;

    @ApiModelProperty("订单金额")
    private BigDecimal allPay;

    public Integer getUserOrderId() {
        return userOrderId;
    }

    public void setUserOrderId(Integer userOrderId) {
        this.userOrderId = userOrderId;
    }

    public String getUserOrderNo() {
        return userOrderNo;
    }

    public void setUserOrderNo(String userOrderNo) {
        this.userOrderNo = userOrderNo;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Date getUserOrderCreateTime() {
        return userOrderCreateTime;
    }

    public void setUserOrderCreateTime(Date userOrderCreateTime) {
        this.userOrderCreateTime = userOrderCreateTime;
    }

    public Date getUserOrderFinishTime() {
        return userOrderFinishTime;
    }

    public void setUserOrderFinishTime(Date userOrderFinishTime) {
        this.userOrderFinishTime = userOrderFinishTime;
    }

    public Date getAppointTime() {
        return appointTime;
    }

    public void setAppointTime(Date appointTime) {
        this.appointTime = appointTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserOrderLocation() {
        return userOrderLocation;
    }

    public void setUserOrderLocation(String userOrderLocation) {
        this.userOrderLocation = userOrderLocation;
    }

    public BigDecimal getAllPay() {
        return allPay;
    }

    public void setAllPay(BigDecimal allPay) {
        this.allPay = allPay;
    }

    @Override
    public String toString() {
        return "UserOrder{" +
        "userOrderId = " + userOrderId +
        ", userOrderNo = " + userOrderNo +
        ", userId = " + userId +
        ", shopId = " + shopId +
        ", userOrderCreateTime = " + userOrderCreateTime +
        ", userOrderFinishTime = " + userOrderFinishTime +
        ", appointTime = " + appointTime +
        ", status = " + status +
        ", userOrderLocation = " + userOrderLocation +
        ", allPay = " + allPay +
        "}";
    }
}
